package com.fishbone.mybatisplus.injector;

import com.baomidou.mybatisplus.core.injector.AbstractMethod;
import com.baomidou.mybatisplus.core.injector.DefaultSqlInjector;
import com.fishbone.mybatisplus.injector.method.ExtendSqlMethod;

import java.util.List;

/**
 * @ClassName ExtendDefaultSqlInjector
 * @Author huyaxi
 * @DATE 2020/4/27 13:44
 */
public class ExtendDefaultSqlInjector extends DefaultSqlInjector {

    @Override
    public List<AbstractMethod> getMethodList(Class<?> mapperClass) {
        List<AbstractMethod> methodList = super.getMethodList(mapperClass);
        methodList.add(new ExtendSqlMethod());
        return methodList;
    }
}
